/*
 * @Author: cl
 * @Description: 
 * @Date: 2023-05-06 16:40:25
 * @LastEditTime: 2023-05-06 17:21:49
 * @FilePath: \jsnode\nestjs\naota\prisma\seeds\user.ts
 * @LastEditors: cl
 */
import { PrismaClient } from '@prisma/client'
import {initMock} from '../help'
import { Random } from 'mockjs'


export function createUser(){
    initMock(20,async (prisma:PrismaClient)=>{
        await prisma.user.create({
            data: {
              name: Random.email(),
              password: Random.string(),
            }
          })
    })
}